生成型AIの進化:ルールから推論へ
人工知能の歴史は、明確な人間によるプログラミングからパターンに基づく統計的予測への根本的な転換によって特徴づけられます。この進化により、現代のAIは複雑な 推論 タスクを実行できるようになっています。
1. 何であるか:ルールベース時代
初期のAIは エキスパートシステムに依存していました。これらのシステムでは、すべての可能な応答や行動が、厳密な IF-THENロジックを使って人間が手動でコード化されていました。
- 制約: これらのシステムは脆弱でした。ニュアンス、スラング、タイポ、あるいは特定のハードコーディングされたプログラム外の状況には対応できませんでした。
2. なぜか:統計的ブレイクスルー
ブレイクスルーは、大量のラベルなしデータを処理できるようになったことに起因します。手動のルールではなく、 大規模言語モデル(LLM) 単語間の統計的関係を学習するのです。
- トランスフォーマー: 2017年に導入された画期的なモデルアーキテクチャです。
- アテンション機構: トランスフォーマーの核心となるコンポーネントであり、文脈の深い理解(たとえば、長文の中で「それ」が何を指しているかを把握する)のために、シーケンス内の異なる単語の重要性を重み付けできるようにしています。
3. どのように:予測から推論へ
現代の生成型AIは本質的に 非決定論的です。固定の意思決定ツリーに従うのではなく、次のトークンの確率分布を計算します。
前の文脈全体に基づいて繰り返し最も可能性の高い次の単語を予測することで、モデルは創造的なコンテンツを生成し、自然言語で提示された複雑な指示に対して「推論している」ように見えるのです。
確率の罠
AIは事実のデータベースではありません。統計エンジンなのです。ただ最も可能性の高い次の単語を予測しているだけなので、 「幻覚」という罠にはまり、絶対的な自信を持って誤った情報を提示してしまうことがあります。
TERMINALbash — 80x24
> Ready. Click "Run" to execute.
>
Question 1
What is the primary difference between rule-based chatbots and modern Generative AI?
Question 2
What does the 'Attention Mechanism' in a Transformer model do?
Challenge: Designing a Tutoring App
Apply your knowledge of AI evolution.
You are designing a tutoring app. You need to choose between a rule-based "if-then" system and an LLM.
Task 1
Identify a scenario where the rule-based system would fail but the LLM would succeed.
Solution:
Handling a student asking the same question in a creative or slang-heavy way (e.g., "Yo, how do I do math?" vs "Please explain the equations."). A rule-based system would likely throw an error if the exact phrasing wasn't programmed.
Handling a student asking the same question in a creative or slang-heavy way (e.g., "Yo, how do I do math?" vs "Please explain the equations."). A rule-based system would likely throw an error if the exact phrasing wasn't programmed.
Task 2
Suggest a "Metaprompt" to ensure the LLM doesn't just give the answer but acts like a tutor.
Solution:
"You are a helpful tutor. Do not provide direct answers. Instead, ask leading questions to help the student find the solution themselves."
"You are a helpful tutor. Do not provide direct answers. Instead, ask leading questions to help the student find the solution themselves."